fix missing end char
fix serialize bug