Fix layout assignment.