Make sure the main layout is loaded properly.