Changed normalizeTGGATES function to not remove duplicated source names