Fixed dPrev.

The slides are wrong; the rotate(3) at the end is the correct way.