Repair API calls to head