GbEditorFrame: fix array overflow