fix bad cleanup