Bug fixed when UserService returns location result as undefined