Script Stopped Working - Walking on Walls

Hello all! I got a weird bug here…

I was using this code “Walking on Walls”, and it was working just fine. The character rotates and “sticks” to the wall.

On the next day, the script wasn’t working anymore! The character rotates, align to wall’s normal (and should stay in this position to walk on the wall), but when it finish rotating, the character returns to it’s original rotation, and then sticks to the wall.

Can anyone help me?
I did not change the code in the meanwhile. Actually, I did not created any other code, tags, layers, prefabs or names that could possibly interfere, I was just creating the level.

Found the bug! I was using Mouse Look. The weird thing is… it was working fine few days ago…