Fix a bug when wrong deserialization with APC