fixed the bug with jumping when hit