Fixing default editor when there is no display