bugfix the location service