rotate bug fixed