fix for keys/keyscount