Fix error concerning root dir