Small Fix to port range logic