fix orientation change problem