corrected an error in the cleanup task