Fix generate command.