Fixing a potential issue with issue tree scanning