Fix for Authentication Provider Factory