Fixed bug: more than one primary key did not work.