bug fix of BOrotate