fixing an oddity in how the table key was handled