fix the orientation issue