fix basicdata serialization