fixed autocomplete mode to support nxml mode