fixed small issue with linking devices