clear button bug fix