Bugfix for missing variable in mac_in_table function