fixed list removing bug in checkClosure method. Loop over a list and remove its own values is not a good thing