fixed problems with location service