fixing port_range calls