Connecting a midi controller via an usb hub

Hi, I don’t know if anyone else has noticed a different behaviour of djay pro ai depending on how you connect a midi controller. If you connect the controller directly to the computer (mac in my case) the programme remembers the previously assigned control settings. But if it is connected via a usb hub it’s like another controller and then the programme asks if you want to configure it.
I also didn’t understand whether midi settings can be copied/pasted en bloc.