fixed terminal reset