Fixed problem with Portrait mode