fix bug when multiple instances always using port 9485