fix bug on program state events in EUDE