Fix the currentProcessId -1