True, good catch. Should be ref() here and unref in deserialization.