avoid errors when object already removed