bug: remove method was resetting injectables even if the 'name' param is not null