fix input method error