fix ruby 1.9 OpenStruct