I guess whether this is a bug or not depends on your perspective but I think there can be some common solutions.
If I delete a mask and then I add a new mask, a new cloze number isn’t used. Instead the mask gets the deleted cloze number. Which means the maks gets the review history from the previous card.
Solution
Allow people to control cloze numbers. However, that’ll introduce additional complexity so I’m not sure.