I took all my lids off and carpeted them separately. Drill out the boat side rivets on the hinge, so the hinge is still attached to the lid .
Cover the lid with a little flap covering the hinge. When you rivet it back on that flap is now held down with the rivet, between the hinge and deck...