Fix entropy calculation bug

The strength increased and suddenly it dropped.