Fixed wrong array index

There was two index for $locale array that were invalid.