fix swapmanager fail to publish on reconnect bug