UI was not displaying duration correctly