Fix warnins on Ruby 2.1.2.