Fix proxy logic.