Resolving bug indexing templates