FIxed crash when no provider enabled