Custom provider fix

Custom providers should work as described at README.