Fix for changing proxy