Table row context Id not correct

I have a table that is in a second pop up, that when creating a mass action, the table row context is not correct. Instead of putting the row Id of the selected rows in the created row, it puts the Id of the previous selected pop up in the row.

An individual row action works, and the mass update and delete functionality works. Its just the mass multiple actions action that does not work.

Any thoughts on how to resolve this?