fixed broken examples under Ruby 2.2