Effect of inhomogeneity on the transport in underdoped superconductors