Fixed bug when injecting $location.