fixes #9140: use correct var in tables