Fixed issue in ents.lua