Fix id issue in insert.