Fixed error in service provider