entropy counts quantization BUG fix