fix rorate bug