Fix jumping bug (getting stuck in trees)