Fixed dual waitpid bug