[#5453] Fix initialization of the stats object