fixed terminal client bug