BUG: Fixed the injection of named services.
Merge pull request #1184 from ajshort/named-services

BUG: Fixed the injection of named services.