fixed rotate bug

polar angle for z and y was updating angle for x