Hardening the adhesive by curing