fixed the problem of autoincrement
updated the index file