correct autoincrement value