FPS character falling on face after jumping

my self made first person controller is falling on its face if I am looking down while jumping. my mouse looking script is the same ad the one in the FPS template. any help is appreciated.
Thanks in advance.

You may have changed the rotation parameters of the capsule. You can use one of the functions to align the character capsule after landing.