model invoke bug fixed in scaffold generator