Fixed bug where edit status was still there after the window had been closed.