fix port settings