Fixed communicatin between child and parent process.