fixing a directory acces issue