fixed indexoutofbounds exception when no paired devices