Fixed some bugs.

Support NKF.