lang, fixed enter text algorightm.