Fixed a bug that was causing an invalid memory write and read in SchemaMap.