fixed fetching the process PID on multiple results