Fixed error with Gob encoding.