refix clear button bug