Fixed infinite loop issue when simplifying roots. No errors print when simplifying roots.