Fix for mis-named fields in statistics API endpoint