fixed problem with loading table data and row was -1.