bugfix in clean