fix the error for providers