My character keeps landing on his head when he flips+weird positions

Just look at the game, face left and double jump. Then after that, try spamming double jump and movement until he gets into a weird position. I need both of these fixed. Can anyone help me please? And yes, I already tried myself.

Game: http://flowlab.io/game/play/1150822