fix the providers loaded multiple times issue