Lut: easy bug fix (thanks to asserts and well-named functions and variables…)