fix Object types to hashes