fixed input method problem.