diff --git a/lib/textbringer/input_methods/t_code_input_method.rb b/lib/textbringer/input_methods/t_code_input_method.rb
index <HASH>..<HASH> 100644
--- a/lib/textbringer/input_methods/t_code_input_method.rb
+++ b/lib/textbringer/input_methods/t_code_input_method.rb
@@ -13,6 +13,11 @@ module Textbringer
     def initialize
       super
       @prev_key_index = nil
+      @mazegaki_start_pos = nil
+      @mazegaki_candidates = nil
+      @delete_help_window = false
+      @help_window = nil
+      @prev_buffer = nil
       setup_dictionaries
     end
Initialize instance variables to avoid warnings