Fixed problem with not saving all windows in a session when the shared