corrected bug where the first entry in csv directory doesn't have an ID