fix serialize typo