fixed provider scope issue