Fix bug in clean