fix clear bug