bug fix - if primary key is string