Fix recursive set port in request class