diff --git a/src/004-base/facility.js b/src/004-base/facility.js
index 2172a12d2b73fc7072349da2d10508635b5c936a..f64d59395a5228a55e5ae247511c85986e63f7fd 100644
--- a/src/004-base/facility.js
+++ b/src/004-base/facility.js
@@ -331,7 +331,8 @@ App.Entity.Facilities.Facility = class {
 	/** Number of already hosted slaves
 	 * @returns {number} */
 	get hostedSlaves() {
-		return this.job().employeesIds.length;
+		const job = this.job();
+		return job ? job.employeesIds.length : 0;
 	}
 
 	get hasFreeSpace() {