some bugfixes for new mating algorithm, for the case that it's canceled midway