Fix issues with hash_ext to_schema