fix bug on program cycle edit