Fixed assertion in GP editor.