fix slave linked to master fail bug