Fix proxy redirect issues