fixing PID