diff --git a/io/src/main/java/org/red5/io/object/DataTypes.java b/io/src/main/java/org/red5/io/object/DataTypes.java
index 8ae5f76f3..352e24584 100644
--- a/io/src/main/java/org/red5/io/object/DataTypes.java
+++ b/io/src/main/java/org/red5/io/object/DataTypes.java
@@ -207,7 +207,7 @@ public static boolean isBasicType(byte type) {
* @return boolean true if data type is complex (non-primitive), false otherwise
*/
public static boolean isComplexType(byte type) {
- return type >= CORE_ARRAY || type <= CORE_OBJECT;
+ return type >= CORE_ARRAY && type <= CORE_OBJECT;
}
/**