fixed showports loop