ensure promoted slave become master fixes #5