Fixed bug in port check