Fixed bad error in Generate.