fixing click to clear