Fixes location array.