Bugfix: clear table when deleting the last column