Core/SmartScripts: Fix multiple target_types

Looking into Shaurens comment 
Closes #12670