fix kitty crash
Merge pull request #892 from LucidCrux/redacted_fix

fix kitty crash