fix not reconnecting issue