bugfix in dependency injection