fix orientation error