shannon entropy bug removed