Fixed bug in cleanups script