Fixes bug where shader steps were duplicated whenever a model instance was added.