fix jumping bug