fixed initialization when no provider is selected. defaulting to a
random provider from DB