fix ordering of locations in settings and bug with displaying a location after hiding it.