An Effective Dynamic Gradient Calibration Method for Continual Learning