fixed can't establish current session error.
fixed compile error.