Fix duplicate targets from added templates

ಠ_ಠ