Some bug fixes in issue exporting