Bimini top repair

What glue do yall recomment for repairing one of the sleeves that hold the rail in place under my bimini top? I have the top that snaps to the windshield and the middle support rail bounced loose last night on a rogue wave (it may have been a touch dark) and almost knocked me out. Lol