Fixed selection of provider

Handler was not able to select a provider of the correct version. This commit fixes it.