fix bug: region error in enclosed_word