Bugfix in table updating