fix angularjs ajax request.