Do NOT confuse HAVING to do something ( Tener + que + infinitive) with Having DONE something ( Haber + past participle)
Explanation