Bugfix: port set in the wrong place