fix for "can't establish current session" error