Fixes crashing inside of epic.lua

I saw some of your issues in the irc logs, hopefully this fixes them, just comment here if you have any more issues for me to look at, I likely won't be on irc much this week.