fix creating child process