fix bug with clear button