fix generate command