Fixes a bug where the statistics submitted are incorrect