Fix serviceprovider error