fix bug for events array with content for number of bubble event