Fix bug with port