fix rotate error