fix so the character stops if he jumps

if they jump in a roof for example