Fix for wrong index value on events after destroying models.