fix in clear()