fix a bug of listen port