fixed doubling of root