bugfix for ensemble id of last zk node