Fix error in table method