fixed issue where object loses primary key when updated