fixed gob register of objects