fixes bug with default port