fixes for removing model instances from worker