Fix translate and rotate