Fixed bugs in eigvalrand