fixed problem with primary key value