Fix a bug in binding to a port range.