Fix provider class reference on interface check.