serialization bug fixed