fix kitty crash