bug fix for _appLayout.js