main guy's rotation changes along z axis at the edge

still a glitch when coming back up, when it touches turn colider for
coming back up it freaks out and flips upside down