Fixed clear state for numeric calculator