fix serialize interface