Please improve the grammar in the given paragraph.
I stayed with a local family, which happens to be the family of the person that stayed with me when he took part in the same programme.
I stayed with a local family, which happened to be the family of the person that stayed with me when he took part in the same program.