use correct var in tables

BS3 commit c731961f9d89a2fe868a85daf4bbb65e55680099
Fix 9132, but in the correct branch

BS3 commit b976956432ccf2e0d6f809da1ca6a9d8e99eb39b