major angularjs fix