Fixed broken generate