core: guard endless regions processing
gui: fix sync with editor