Fixed a bug in finding high entropy region