TAB bug fixed in term mode