fix rotate < 45 degree