Replace index with 0