Corrected the cleanup operation