Normalize dist array.