fixing issue in unless condition for znode