Fix the bug that kitty always appears when using user templates

The user can load and select user template file, but always 'kitty' will be appeared.