fixed bug wtih ng-cloack and missed factory name