fix no_publish attribute in layouts