Ensure pid is a number