Fix issue with broken stats API.