fix off-by-generation error