Fix input method inheriting