Fix PID check failed errors