bug fix clean()