fix locationProvider error