fix bug retrieving csv files