fix RegCalculator