Jumping function doesn't stop