Fixed pid check