fix client host bugs