Fixed a confusion between table and chain