fix a bug when gets disconnected by host when binding witouth resource