Fixed a small bug in the second-order symplectic method.