Dungeon Tools Script Error

hello, so I am using casper gaming's wonderful dungeon tools script, but for some reason I keep encountering a random error that looks like this:

Untitled.png


Line 844 is untouched and reads: for i in 0...event.list.size

Link to the script here
If there is a line just before the error line which looks like this:

Code:
unless event == nil
Than change that line to this one:
Code:
if !event.nil? && !event.list.nil?

Original thread: https://forums.rpgmakerweb.com/threads/dungeon-tools-script-error.47961/