fix root check bug