Fixed bug in schema reflection