fix schema loading