fixed bugs in calculation of ringdown frequencies