Fixed the infinite falling bug.