fix when no session