Resolve an error with the cleaning function.