There is a bug, but it's not really the one you reported.

The problem with the current code is that it throws an exception because you're trying to add duplicate records to the second grid, this...