correct the PID control