Fixing issue with non-leader changing the cluster configuration