Fix entropy counter