Fixed bug causing incorrect duration seconds calculation.