Repair real-valued integral template (and remove complex-valued one).