fix some bug in mysql master slave exchange script