fix port reused issue