Bug fix: $port component URL overwritten by _socket()