add RubyHashFixing function