fix the serviceprovider