Fixing startup issue when no agent or office is saved