bug fixed: isKey must be compared with isPartitionKey()