Fixed root mismatch bug.