fix document context menu close other when called on a different document that the current one