fixes areas where port should be removed from domain during parsing