fix datagatherer bug