event error fixed