fix clear()