Camera acts weird when looking up

Found a fix for it,
On the Character Details, go into “Use Controller Rotation Pitch” by default it’s unchecked, just check it and compile.