Bug fix: do for all was not handling an empty data set properly