fixed problem with directory