diff --git a/system/modules/generalDriver/DcGeneral/DataDefinition/Palette/PaletteCollection.php b/system/modules/generalDriver/DcGeneral/DataDefinition/Palette/PaletteCollection.php
index <HASH>..<HASH> 100644
--- a/system/modules/generalDriver/DcGeneral/DataDefinition/Palette/PaletteCollection.php
+++ b/system/modules/generalDriver/DcGeneral/DataDefinition/Palette/PaletteCollection.php
@@ -119,9 +119,11 @@ class PaletteCollection implements PaletteCollectionInterface
 		// get palettes with highest matching count
 		$palettes = array_pop($matches);
 
-		if (count($palettes) > 1) {
+		if (count($palettes) !== 1) {
 			throw new DcGeneralInvalidArgumentException();
 		}
+
+		return $palettes[0];
 	}
 
 	/**
Bugfix: really return the found palette.