diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index a52b3b0da1850cb57df04bdb99a9613352f9c735..0a8088e4b4bf94cbe1600471778ee0fb7819930a 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -4174,10 +4174,10 @@ function _M:canSeeNoCache(actor, def, def_pct)
 		local esp = self.esp
 		local t, st = rawget(actor, "type") or "???", rawget(actor, "subtype") or "???"
 		-- Type based ESP
-		if esp[actor.type] and esp[actor.type] > 0 then
+		if esp[t] and esp[t] > 0 then
 			return true, 100
 		end
-		if esp[actor.type.."/"..actor.subtype] and esp[actor.type.."/"..actor.subtype] > 0 then
+		if esp[t.."/"..st] and esp[t.."/"..st] > 0 then
 			return true, 100
 		end
 	end