fix a bug to make Accumulables serializable