fixed bug with not connect socket