Correction of the port checking loop (yes, a case of infinite loop ...
seriously...)
Fix typo