PID check fixes #342