Fixed issues on orientation change on mobiles.
Fixed issues on orientation change on mobiles.