Fixed lookup generation.