Fixed wrong condition on proxy
Proxy and session settings