fixed history bug in notepad