Fix Layouts.js