I forgotten else statement in is_root, fixed