fix for converting duration to seconds