fix bug with dataprovider