fix for setting proxy failed