Replace to_h with to_hash