Fix performance problem on issues pages.