fix the layout.js