Fix `Object #<Object> has no method 'emit'`