fixup bug for getdevicedata