Fix error with $http