fixed bug disconnect