fixed change orientation bug