Fixed Entropy Bug