fixed nil object in application layout