Bug in editor caused eroneous mode change