fix bug load hosts array incorrect