Fixed bug with directorynamer