Resolving an issue with wrong re-render of table with dinamic