terminal attached restarts fixed