fixed issue that prevent reverting multiple deleted rows.

Thanks JoeSimsen (https://github.com/JoeSimsen) for reporting this
issue.