bug fix in issues controller