fix deserializer bug