Fixed provider so that it doesnt throw errors on linux machines.