Fix error with root dir