Fixed provider bug