fixed Lua's events; fixed "resourceStarted" event