Repair layout errors.