small fix on proxy redirect