Headliner Glue

My headliner fell in the rear, towards the rear window.

The factory insulation came apart. So I removed all of it, and put a carpet insulation that I had up there, and glued that to the roof, and glued the headliner to it. I used the spray on glue that's intended to interior parts.

It all worked perfectly, till a few hours later, it drooped again. I believe that the glue I used can't cope with the heat that exists from the roof.

Has anyone had this happen before, and can recommend a better, more heat resistant glue?

Thanks in advance!