.onCellSelect event work only on the first page.

I am having a table and code a oncellSelect event. Work very good on the first page. But nothing happen at all on all the next one.
When I come back to first page, it start working, but only for the first page.

 $w("#table1").onCellSelect((event) => {

Any idea of what cause the situation