Fix problem creating locations.