minor fixes for csv upload processings