Fixed a bug about regarding $http.