zookeeper script bug fix