fixed some bugs in CAT_Helper_Directory