fixed a bug where GPS was used instead of NETWORK in case GPS was unavailable