diff --git a/src/js/assignJS.js b/src/js/assignJS.js
index b166e89857d90595a0411685535c637cee8a2cc2..934106639e1812be1da60c541a0f1dc185a12da4 100644
--- a/src/js/assignJS.js
+++ b/src/js/assignJS.js
@@ -448,6 +448,9 @@ window.assignJobSafely = function assignJobSafely(slave, assignmentStr){
 window.removeJob = function removeJob(slave, assignment, saveRecord) {
 	"use strict";
 	let r = "";
+	if (typeof saveRecord === undefined) {
+		saveRecord = false;
+	}
 
 	if (slave === 0) {
 		// it is well-formed, but does nothing, to remove an assignment from nobody.
@@ -456,7 +459,7 @@ window.removeJob = function removeJob(slave, assignment, saveRecord) {
 		return r;
 	}
 
-	if (V.assignmentRecords[slave.ID] && !(saveRecord === true)) {
+	if (V.assignmentRecords[slave.ID] && (saveRecord === false)) {
 		delete V.assignmentRecords[slave.ID];
 	}