bugfix for schema reading.