fixed bug where the deliveries were taken from instance_id and not programme_id