There is some bug happening in compute_encounters.