Fixed clear button not being disabled when it should