fix generate