Bugfix: host_pattern and port_pattern are flipped