fixed dependency injection when minified