Fixed some problems with angular.