fix prefilling primary key