Fixing bug in iteration over distributions for csv files.