fix improper construction of root cursor