Array re-index solved