Critical bugfix in PID