fix "Exit" / "Done" status when editing documents