The effect of universe inhomogeneities on cosmological distance measurements