fix-key-prefix-checking