fixed NoDataError exception