Directory bug fixed