Fixed MainFragment null pointer issue