correcting ports