fixed orientation switch issue