diff --git a/src/js/assayJS.js b/src/js/assayJS.js
index ed6a5cff1c978c05fb99cbfeba4c068d2579adf5..2333008aae8e1822e05ff258608aba080874c5fd 100644
--- a/src/js/assayJS.js
+++ b/src/js/assayJS.js
@@ -1821,5 +1821,5 @@ window.retirementReady = function RetirementReady(slave) {
  * @returns {boolean}
  */
 window.isShelterSlave = function isShelterSlave(slave) {
-	return (typeof origin === "string" && origin.includes("Slave Shelter"));
+	return (typeof slave.origin === "string" && slave.origin.includes("Slave Shelter"));
 };