Either:
Remove FF number from the booking and retro claim each flight separately, minimal risk of flights crediting incorrectly.
Attach FF number you want to credit the first flight to then change the number prior to the second flight, some risk of the flight not crediting as you want.