Fixed bug in BaseSchema schema generation