fixed pids being passed