terminal bugfix