Remove unnecessary extra index from array.