Fix bug in clean operation.