fixed bug in APFSerialization.