Issue with port checks and default section