Fix clear button bug