fixed bug in import_issues

variable `index` was not defined