fixed auto re-connection