bug fix on getpaireddevices. fixed dublicate keys