fix problem with detecting loaded providers