fixed a bug in table-view