Fix bug with select provider.