fixed terminal history