Fixed a problem calculating a sub-hash from a hash to make Ruby 1.8.7 work again