fix bug in EE 2.6+ where publish layouts would break