bug fix. Pid is an int