Fixed Clear button history bug