Prevent duplicate licenses

Fix another scenario that was creating duplicate licenses