fixed orientation problem