fix actionGenerate()