Fix bug with no root path