Ok, if I recall correctly this is a problem with 1.8, try using 1.7 . Also, when this has happened to me using 1.7 fixed the problem. But when I used 1.8 it was just a visual glitch/bug the piston still worked in the direction it was originally place to do.
It is just a problem no one is doing it to you just like everyone else is saying... Just please try to re log, and it will work if so it does work Please lock this thread.