diff --git a/source/EV3.m b/source/EV3.m
index e551b3b3d57bc3e4453cc901038d0c55a34e3e0e..f05ad90b9af36ec537875e58a4ce3f20873d750c 100644
--- a/source/EV3.m
+++ b/source/EV3.m
@@ -471,9 +471,10 @@ classdef EV3 < MaskedHandle
             warning('off', 'all');  % Turn off warnings while reading values
             for i = 1:length(props)
                 p = props{i};
-
-                if strcmp(class(ev3.(p)),'Sensor') || strcmp(class(ev3.(p)), 'Motor')
-                    fprintf('\t%15s [Type: %s]\n', p, char(ev3.(p).type));
+                member = ev3.(p);
+                
+                if strcmp(class(member),'Sensor') || strcmp(class(member), 'Motor')
+                    fprintf('\t%15s [Type: %s]\n', p, char(member.type));
                 end
             end
             warning('on', 'all');
diff --git a/source/displayProperties.m b/source/displayProperties.m
index 7b39943844cc380e259cf5628f5a6a0c5ee37ba4..3c7a8effc06ea6405ae93749063f30a77b89f940 100644
--- a/source/displayProperties.m
+++ b/source/displayProperties.m
@@ -46,15 +46,15 @@ for i = 1:length(dependentProps)
     value = device.(p);
     if ~isempty(enumeration(value))  % Test if parameter is enumeration
         fprintf('\t%15s:   %s\n', p, char(value));
-    elseif isnumeric(device.(p)) || islogical(value)
+    elseif isnumeric(value) || islogical(value)
         if isfloat(value)
             fprintf('\t%15s:   %1.1f\n', p, value);
         else
             fprintf('\t%15s:   %d\n', p, value);
         end
-    elseif ischar(device.(p))
+    elseif ischar(value)
         fprintf('\t%15s:   %s\n', p, value);
-    elseif islogical(device.(p))
+    elseif islogical(value)
 
     end
 end