Table: fix the bug of refresh method in table widget

Note by @gabrielschulhof: Commit message edited to
reflect commit message guidelines, and author editor to include real name.