fixed bug in generateIssue