fixing reconnect master