Fixed the no provider bug