Fix layouts.