fix the rotate problem

fix the rotate problem