fix a bug that GetProcesses was not working.