Fix some problems migration layout preferences