Fixing bugs after implementing the jumping animation.

The bug was because of the gravity change.