Repair compiler errors