fixed directory properly