Added index to the add event for ManyToMany.