core.layout: fix