Clear button works after error