Fix layout check