parent process detection fixed