fix get parent process api