fix bug in closure.rb