bug fixed for SchemaStat