fix the bug( 1, 2) in cleanup code