fix rotatedelay bug