the code for removing an actor from a model object was incorrectly referencing packages attribute.