update the tempo->tempo2 conversion code, fixing small bug.