Correctly handle global mode when resetting leader.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>