Fix bug with changing GPS provider state.