bugfix for layouts WITH the layouts module.