If you try and kick that back into the bar, use plenty of spray contact adhesive first to glue the underlay to the floor and to help the carpet grip the top of the underlay.
Or use a wider profile, perhaps a piece of scrap oak, or you can buy a profile from Treadplates UK to butt against the...