Fixed bug when loading docs with diff schema