delivery: fix flow control