fixed DLL bug: lookup table index was ignored