fixed bug with landscape orientation