Fixes event error