bugfix in array_location_setup()