fix the bug that kitty always appears when using user templates