bugfix in new_dataprovider