What is a good way to anti-moon walk?

I need help again... How do you do a moonwalk i did someone's tutorial... but I found a glitch that won't let me sleep
but i need help i made a game that's very hard (so don't expect ged i will make an example with another file
) and the platforms are like the picture shows... then when you jump and hold jump you stick to the platform... you can move but are still stuck to the platform (like in "after" picture) then when you move off the platform you go up like you just jumped!!! its so annoying!!
could someone help... and like i said the game itself is extremely hard so i wont put the ged up, i will make a similar game without enemies. 




