fixed auto orientation problem