Fix problem with not rendering application layout