fixed little bug in initialization of directories