fix a bug in clean