Fix issue with return stats payload as a string.