Fix jumping bug