fix for complex roots