Fix interval bug in CSV export