fix bug in issue hook