fix master slave