fixed bug in function query in Query.hs, needed JsIssue and not Issue