fix #1 support for the landscape mode.