statistics serialization fix