diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index 97bfeba122670466938efa64a5a026e67ef18b65..c242a3dfb1317daac9298d3df55e8c173e28e4e7 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -1456,6 +1456,7 @@ function _M:teleportRandom(x, y, dist, min_dist)
 	if dist == 0 then
 		x, y = util.findFreeGrid(x, y, 5, true, {[Map.ACTOR]=true})	
 	end
+	if not x or not y then return end
 	
 	-- Store our old x, y to pass to our callback
 	local ox, oy = self.x, self.y