fix issue where lut is array of zeroes