fixed problem with dependency injection
Merge pull request #3 from lovelysystems/master

fixed problem with dependency injection