Fixed bug in ChildProcess