Fix problem with getting table contents