another fix for ensureSignedIn