fixed nasty waitpid error: Success bug