fixed directory location bug