fix crash with "layout default"
