Make a background list of genes (i.e., the statistical universe) based on all the terms (gene sets, pathways) considered.
Useful links