fix error_calc ctor signature