fix generate action