corrected Clear button issue