Fixed bug in fillLut()