Bugfix: faulty multiple provider selection.

Closes #3067.
Merge remote-tracking branch 'ivan/bug/3067_faulty-multiple-provider-selection' into develop