Fixing error in layout application file