Fix bug in show_port