Fix bug with clear button