fix crashes if GPS and location service disable