Added a missed guard for the port range