Resolved hash problems by replacing $location service.