Fixes problem with re-electing master on message loss