Fix layout editor