fixed the id inconsistiency problem