integrator/integrator: fixed calls to calculate_errors()