fix errors in layouts/application file