diff --git a/src/js/generateGenetics.tw b/src/js/generateGenetics.tw
index 022dc6125913fb1a8afd04da7f91cd501528d870..4e997b202e85831f511323824f450513ed665c28 100644
--- a/src/js/generateGenetics.tw
+++ b/src/js/generateGenetics.tw
@@ -79,7 +79,7 @@ window.generateGenetics = (function() {
 	// motherName
 	function setMotherName(activeMother) {
 		let motherName;
-		if (actor1 == -1) {
+		if (activeMother.ID == -1) {
 			motherName = activeMother.name;
 			if (activeMother.surname !== 0 && activeMother.surname !== "") { motherName + " " + activeMother.surname; }
 		} else {
@@ -105,8 +105,8 @@ window.generateGenetics = (function() {
 				fatherName = activeFather.slaveName;
 				if (activeFather.slaveSurname !== 0 && activeFather.slaveSurname !== "") { fatherName + " " + activeFather.slaveSurname; }
 			}
+			return fatherName;
 		}
-		return fatherName;
 	}
 
 	// nationality