directory leaking hidden channels - logic issue