fix app in horizontal mode