diff --git a/game/modules/tome/dialogs/ShowChatLog.lua b/game/modules/tome/dialogs/ShowChatLog.lua
index fb50f254abc07ac28e4c61cd95c386d1390a001b..3d22f4b90600fd3d0ad4ddae1875663cd53a9b5b 100644
--- a/game/modules/tome/dialogs/ShowChatLog.lua
+++ b/game/modules/tome/dialogs/ShowChatLog.lua
@@ -156,7 +156,7 @@ function _M:switchTo(ui)
 		self:loadLog(self.log:getLog())
 	else
 		local s = nil
-		if _M.last_tab == ui.tab_channel and self.scroll < self.max - self.max_display + 1 then
+		if _M.last_tab == ui.tab_channel and self.max and self.max_display and self.scroll < self.max - self.max_display + 1 then
 			s = self.scroll
 		end
 		self:loadLog(self.chat:getLog(ui.tab_channel, true), s)