Fix another issue with locations array