Fix an incorrect cleanup