Fixed terminal history not working.