fixed the line break issue in csv generator