fix bug in data provider dismissal