Fixed angular.js issue