minor bugfix for compound unique keys