Fixed root checking