Fixed the nvd3 dependency injection issue