Fix issue, "Attempt to delete minibuffer or sole ordinary window"