fix unsafe port