Bug fix in Lut.cpp