Fixed clear bug