Fixed issues from before putting port in hidden div.