bugfix in tables