Fix bug in japanese mode.