bug fix create port