Fixed bug caused by clear