fix bug in landscape orientation