Multi-bar rests in a score with mixed time signatures

In the score, Instrument A is in 4/4 time, while Instrument B is in 2/4 time. I am currently working on the part for Instrument B.

The score contains both 4/4 and 2/4 time signatures. When I extracted the part for the instrument in 2/4, the multi-measure rests were recalculated based on the 2/4 meter. Based on the original 4/4 meter, there should be 20 multi-measure rests, but they were recalculated as 2/4 bars and displayed as 40 multi-measure rests. How can I fix this?

You forgot to upload it.

If it’s written in 2/4 then surely the rests should be counted that way too. Otherwise, the players will count wrong. But if you want the rest to be in 4/4, insert a switch to that meter when the rest starts.