fix a rotate issue