fixed bug in issues query