Fixed the problem in mcts_pregnant_mother generated code.