Fixed problem with getting closed table.