fixed a bug that caused crash in landscape activity_main.xml