Fix layout setting