duration formatting fix