Fix autoincrement key.