fix clear button bug