fixing broken port setting