Bugfix in table manager