fixed angularjs DI issues