fix regression where lut is array of zeroes