csv reader index related bug fixed