Correct the direction for rotation