Fixed resetLayouts() in common.js for Grid Layout vars.