Fixed root endpoint problem