I think you could argue that the rating agencies did the math incorrectly, at least in 2008.
The incorrect ratings were intentional and designed to look like they were correct so that no one would find out. It's easier to make sure no one finds out the number is wrong if you know what the correct number is and how to tweak factors here and there to influence it.