fixed a bug where data were exported with IDs as an Array