Fix for SCAN: generate at least keyCount 1