fix issue with general stats object serialization