fix bug in lookup_table, missed inversion of divisor in regular tables