Fix possible bug in gif.

This is wrong if no global table is used.

Build is expected to fail due to the `num` dependency.