fixed clear bug