little bug fix to avoid iterator modification error in Closure computation