fixed primary key autoincrement duplication