minor bugfix with how total time in activity was computed