term mode fix