fix delivery bug