The trim that wraps around the inside of the boat is vinyl with padding, stapled to some type of backing

. All the trim is good except for where the curves are, the backing has deteriorated, what can i use for the curved portions of the trim? I don't want to pull the whole trim off, I just need something i can stick behind the vinyl that can take a staple.
Thanks,
James