fix IME input problem

Issue #195