Fixed port 0 bug