Fix lambda syntax for Ruby 1.9