Fixed multiple mating issue.