Fixed bug in cleanup method