fixing some buggy statistics