another small fix for checking historical datasource