fixed provider error bug