CJuiDialog and pagination

I have noticed that when using the CJuiDialog widget the first page of elements renders correctly, but when using ajax pagination, the widget no longer works.

If I use $data->id as the unique div identifier I notice that on page 2 or 3 of the pagination, the div id’s are still 1-10, when they should be 11-20, 21-30, etc.

The rest of the data is correct. There is just an issue when rendering the widget.

Any ideas?