Fix bug in pilotLUT