Ruby 2.0 compatability fix