fix user location check