Fixing errors in the ZooKeeper initialisation.