Fixes error that was getting thrown from the modelHasEvent method.