small fix in case of default provider