Bugfix for attempted to index nil on ln 49