*fixed activity selection
*fixed wrong time spent calculation