Fix layout snippets