fixed directory problem