Fixed to work in landscape mode