fix for device type check