Fixes bug in editor init on modal display