fix: rm of ports was invalid