fixed bug when add and delete model and bug with still aticve events