Handle nonstandardroots correctly