fixed switching master backend connections