fixed error in location spinner