-Fixed to_hash to not use non-existant field.