sign out tweaks

Two bug fixes.