fix action rule generator