fixing reference to provider