fixed events.lua