Added bug fix in simple root check