Fixed bugs with fragment_main.xml