Fix minor serialize bug