fixed generation.lua error