fix real_roots on linear case