location set bug