Fixes the way of saving stats data from master