Fix: Diagram was not synchronized properly after changing the editor definition