Fix failure on directory