fixed a bug in variant stats table generation