bugfix for multi-column primary keys