Fixed 500 error when provider is not found