fix bug in _reserialize()