fixed bug when clearing after empty echo