fix change orientation problem