Portrait mode fix